package edu.wtbu.cs.bishe.controller;

import edu.wtbu.cs.bishe.service.GoodsinfoService;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


/**
 * 商品信息
 *
 * @author LENOVO
 */
@RestController
@RequestMapping("/goods")
public class GoodsController {

    @Autowired
    GoodsinfoService goodsinfoService;

    @GetMapping("/all")
    @ResponseBody
    public Object getAll(){
        return goodsinfoService.list();
    }

}
